package org.tea.springdata.mina.config;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author: John zhang
 * @version: 0.1
 */
// @Order
public class AppInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {

	@Override
	public void initialize(ConfigurableApplicationContext applicationContext) {
		final AnnotationConfigApplicationContext rootContext = new AnnotationConfigApplicationContext();
	    rootContext.register(MinaConfig.class);
	}

}
